var user = {
    getInfo: function(data, success, error) {
        G.get('api/user', data, success, error);
    },
    update: function(data, success, error) {
        G.post('api/user', data, success, error)
    },
    login: function(data, success, error) {
        G.post('api/user/login', data, success, error)
    },
    register: function(data, success, error) {
        G.post('api/user/register', data, success, error)
    },
    modifyPwd: function(data, success, error) {
        G.post('api/user/secretkey', data, success, error)
    },
    setCommission: function(data, success, error) {
        G.post('api/user/setCommission', data, success, error)
    },
    setInviteCode: function(data, success, error) {
        G.post('api/user/setInviteCode', data, success, error)
    },
    setSecretkey: function(data, success, error) {
        G.post('api/user/setSecretkey', data, success, error)
    }
}